package com.ggb.reactive.domain.entity

import io.swagger.v3.oas.annotations.media.Schema
import lombok.AllArgsConstructor
import lombok.Builder
import lombok.Data
import lombok.NoArgsConstructor
import org.springframework.data.annotation.Id
import org.springframework.data.relational.core.mapping.Table
import java.math.BigDecimal

@Table("setmeal_dish")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(title="套餐菜品关系 SetmealDish")
data class SetmealDish(

    @Id
    var id:Long?=null,
    //套餐id
    @Schema(description = "套餐id")
    var setmealId:Long?=null,
    //菜品id
    @Schema(description = "菜品id")
    var dishId:Long?=null,
    @Schema(description = "菜品名")
    var name:String?=null,
    @Schema(description = "菜品价格")
    var price: BigDecimal?=null,
    @Schema(description = "份数")
    var copies:Int?=null,

    )
